3 Author: Andrés Mejía-Posada
4 (http://blogaritmo.factorcomun.org)
28 #define D(x) cout << #x " is " << x << endl
32 while (cin
>> a
>> b
>> c
>> d
&& (a
+b
+c
+d
)){
33 if (a
== c
&& b
== d
) cout
<< "0\n";
34 else if (a
== c
|| b
== d
|| ((a
-c
==b
-d
) || (a
-c
==d
-b
))) cout
<< "1\n"; //Same row, column or diagonal